#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Core;
using Cephei.Core.Generic;
using Microsoft.FSharp.Core;
using Cephei.QL.Math;
namespace Cephei.QL.Math.Optimization
{
    /// <summary> 
	/// ! \warning The passed CostFunction and Constraint instances are stored by reference.  The user of this class must make sure that they are not destroyed before the Problem instance.
	/// </summary>
    [Guid ("75797503-B9D7-40b1-B313-00E4065FE102"),ComVisible(true)]
	public interface IProblem 
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        /// <summary> 
		/// 
		/// </summary>
		 Cephei.QL.Math.Optimization.IConstraint Constraint {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Cephei.QL.Math.Optimization.ICostFunction CostFunction {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Cephei.QL.Math.IArray CurrentValue {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Int32 FunctionEvaluation {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Double FunctionValue {get;}
        /// <summary> 
		/// 
		/// </summary>
		 IProblem Gradient(Cephei.QL.Math.IArray grad_f, Cephei.QL.Math.IArray x);
        /// <summary> 
		/// 
		/// </summary>
		 Int32 GradientEvaluation {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Double GradientNormValue {get;}
        /// <summary> 
		/// 
		/// </summary>
		 IProblem Reset {get;}
        /// <summary> 
		/// 
		/// </summary>
		 IProblem SetCurrentValue(Cephei.QL.Math.IArray currentValue);
        /// <summary> 
		/// 
		/// </summary>
		 IProblem SetFunctionValue(Double functionValue);
        /// <summary> 
		/// 
		/// </summary>
		 IProblem SetGradientNormValue(Double squaredNorm);
        /// <summary> 
		/// 
		/// </summary>
		 Double Value(Cephei.QL.Math.IArray x);
        /// <summary> 
		/// 
		/// </summary>
		 Double ValueAndGradient(Cephei.QL.Math.IArray grad_f, Cephei.QL.Math.IArray x);
    }   

    /// <summary> 
	/// ! \warning The passed CostFunction and Constraint instances are stored by reference.  The user of this class must make sure that they are not destroyed before the Problem instance. Factory
	/// </summary>
   	[ComVisible(true)]
    public interface IProblem_Factory 
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
        /// <summary> 
		/// 
		/// </summary>
	    IProblem Create (Cephei.QL.Math.Optimization.ICostFunction costFunction, Cephei.QL.Math.Optimization.IConstraint constraint, Microsoft.FSharp.Core.FSharpOption<Cephei.QL.Math.IArray> initialValue);
    }
}

